package com.mongdbtokuduswagger.entity;

import com.mongdbtokuduswagger.utils.BeanMethodAnnotation;
import lombok.Setter;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 高压电力遥信实体
 * @author Daft_V
 * @date 2022/3/10 16:05
 */
@Setter
@Document(collection="e104_high_remote_signal")
public class HighRemoteSignal {
    private ObjectId id;

    private int remoteSignalId;

    private String pid;

    private int eValue;

    private Date createDate;

    private Date updatedTime;


    public ObjectId getId() {
        return id;
    }

    @BeanMethodAnnotation(order = 2)
    public int getRemoteSignalId() {
        return remoteSignalId;
    }

    @BeanMethodAnnotation(order = 1)
    public String getPid() {
        return pid;
    }

    @BeanMethodAnnotation(order = 3)
    public int getEValue() {
        return eValue;
    }

    @BeanMethodAnnotation(order = 4)
    public Date getCreateDate() {
        return createDate;
    }

    @BeanMethodAnnotation(order = 5)
    public Date getUpdatedTime() {
        return updatedTime;
    }
}
